﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Astor.Modules.DataSources.Models;
using System.Collections.ObjectModel;

namespace Astor.Modules.DataSources.Services
{
    public class SampleDataSourcesService : IDataSourcesService
    {
        public ObservableCollection<DataSource> FindAll()
        {
            return new ObservableCollection<DataSource>
            {
                new DataSource { Name = "Northwind", Url = @"http://services.odata.org/Northwind/Northwind.svc/" },
                new DataSource { Name = "Dummy", Url = @"http://services.odata.org/Northwind/Northwind.svc/" },
                new DataSource { Name = "Netflix", Url = @"http://odata.netflix.com/v1/Catalog/" }
            };
        }

        public DataSource Add(DataSource newDataSource) { return newDataSource;  }

        public DataSource Modify(DataSource dataSource) { return dataSource; }

        public bool Exists(string name) { return false; }

        public void Delete(DataSource dataSource) {}
    }
}
